package com.jiangjiang.eshop.order.convert;

import com.jiangjiang.eshop.order.domain.OrderInfoEntity;
import com.jiangjiang.eshop.order.dto.OrderInfoDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName OrderInfoConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/24 11:52
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface OrderInfoConvert {

    OrderInfoEntity convertDTO2Entity(OrderInfoDTO dto);

    List<OrderInfoDTO> convertEnties2DTOList(List<OrderInfoEntity> list);

    OrderInfoDTO convertEntity2DTO(OrderInfoEntity entity);
}
